home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
archive
/
cx201e.arj
/
CX.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-03-01
|
3KB
|
83 lines
{
Cx interface.
Copyright (c) 1990-1994 Eugene Nelson, Four Lakes Computing.
}
unit cx;
{$F+} {Required, do not change}
interface
{------------------------------------------------------------------------}
type CXINT = word;
const CXINTSIZE= (2);
const CX_ERR_INVALID = (65535 - 0);
const CX_ERR_METHOD = (65535 - 1);
const CX_ERR_BUFFSIZE = (65535 - 2);
const CX_ERR_TEMPSIZE = (65535 - 3);
const CX_METHOD1 = (1);
const CX_METHOD2 = (2);
const CX_METHOD3 = (3);
const CX_METHODC = (4);
const CX_METHODD = (5);
const CX_MAX_BUFFER = (65000);
const CX_SLOP = (300);
const CX_C_MINTEMP = (18 * 1024);
const CX_C_MAXTEMP = (65500);
const CX_D_MINTEMP = (7 * 1024);
function CX_COMPRESS(
method :CXINT ;
var o ;
osize :CXINT ;
var i ;
isize :CXINT ;
var temp ;
tsize :CXINT) : CXINT;
function CX_DECOMPRESS(
var o;
osize :CXINT ;
var i ;
isize :CXINT ;
var temp ;
tsize :CXINT) : CXINT;
function CX_CRC(
var buff ;
n :CXINT) : CXINT;
implementation
{------------------------------------------------------------------------}
function CX_COMPRESS(
method :CXINT ;
var o ;
osize :CXINT ;
var i ;
isize :CXINT ;
var temp ;
tsize :CXINT) : CXINT; external;
{------------------------------------------------------------------------}
function CX_DECOMPRESS(
var o;
osize :CXINT ;
var i ;
isize :CXINT ;
var temp ;
tsize :CXINT) : CXINT; external;
{------------------------------------------------------------------------}
function CX_CRC(
var buff ;
n :CXINT) : CXINT; external;
{$L cx.obj}
end.